Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

The premerge jobs currently use the default timeouts. If something ends up hanging, they run for the full six hours. Given our jobs never actually take six hours other than when something hangs, we should set the timeouts lower to not use up machine capacity when something does go wrong. These limits were currently chosen conservatively, being a decent amount above the maximum run times I have seen over the past couple months, excluding six hour timeouts.

The premerge jobs currently use the default timeouts. If something ends
up hanging, they run for the full six hours. Given our jobs never
actually take six hours other than when something hangs, we should set
the timeouts lower to not use up machine capacity when something does go
wrong. These limits were currently chosen conservatively, being a decent
amount above the maximum run times I have seen over the past couple
months, excluding six hour timeouts.
@llvmbot
Copy link
Member

llvmbot commented Oct 18, 2025

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

The premerge jobs currently use the default timeouts. If something ends up hanging, they run for the full six hours. Given our jobs never actually take six hours other than when something hangs, we should set the timeouts lower to not use up machine capacity when something does go wrong. These limits were currently chosen conservatively, being a decent amount above the maximum run times I have seen over the past couple months, excluding six hour timeouts.


Full diff: https://github.com/llvm/llvm-project/pull/164038.diff

1 Files Affected:

  • (modified) .github/workflows/premerge.yaml (+2)
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 03c0c01d382ff..951fc16bed215 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -62,6 +62,7 @@ jobs:
         with:
           fetch-depth: 2
       - name: Build and Test
+        timeout-minutes: 120
         continue-on-error: ${{ runner.arch == 'ARM64' }}
         run: |
           git config --global --add safe.directory '*'
@@ -149,6 +150,7 @@ jobs:
           echo "windows-runtimes=${runtimes_to_build}" >> $GITHUB_OUTPUT
           echo "windows-runtimes-check-targets=${runtimes_check_targets}" >> $GITHUB_OUTPUT
       - name: Build and Test
+        timeout-minutes: 180
         if: ${{ steps.vars.outputs.windows-projects != '' }}
         shell: cmd
         run: |

Copy link
Collaborator

@tstellar tstellar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@boomanaiden154 boomanaiden154 merged commit 321bc21 into llvm:main Oct 18, 2025
13 of 16 checks passed
@boomanaiden154 boomanaiden154 deleted the lower-job-timeouts-gha branch October 18, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants